package com.asynchfileupload.data;
/**  
* IDataHandler.java - Interface for handling save,delete on file.  
* @author  Avinash Singh (349933)
* @version 1.0 
*/
import java.io.InputStream;
import java.util.Map;

public interface IDataHandler {

	/** Implement storeFile() method for storing the file.
	 * InputStream is the file's input stream , fileSessionID is a randomly generated session id ,fileName is the file 
	 * name on the client ,inputParams is a map of the parameters passed in the request along with file.
	 * The input stream should be closed after use.
	 *  */
 	public abstract boolean storeFile(InputStream is,String fileSessionID,String fileName,Map<String,String> inputParams);
	
 	/** Implement deleteFile() method for deleting the file.
	 * fileSessionID is a randomly generated session id ,fileName is the file 
	 * name on the client ,inputParams is a map of the parameters passed in the request along with file.
	 *  */
 	public abstract boolean deleteFile(String fileSessionID,String fileName,Map<String,String> inputParams);
}
